package com.yifeng.repo.micro.service.server.auth.sso.filter.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Collections;
import java.util.List;

@Data
@ConfigurationProperties(prefix = "yfcloud.micro.service.sso")
public class SsoAuthProperties {
    private String url;
    @Deprecated
    private Boolean enableAuth = false;
    private Boolean enableRequestAuth = false;
    private Boolean enableRequestContext = false;
    private List<String> patterns = Collections.singletonList("/**");
    private List<String> ignorePatterns = Collections.emptyList();
    private Integer cacheSize = 4096;
    private Integer cacheTime = 30 * 1000;
}
